FUNCTION Sort ( [ Mode AS Integer ] ) AS Object[]Sorts the array.
Objects are compared by calling the special _sort method.
This method is called on one object, and takes one argument, the reference of the other object it must be compared with.
It must return the result of the comparison as an integer number:
If the objects don't implement the special _sort method, then they are compared by using their address in memory.